<?php
class List_Products
{
	public function getCategories()
	{
		$this->categories_model = new Table_ProductCategories();
		return $this->categories_model->getCategories();
	}

    public function getCategory($id)
	{
		$this->categories_model = new Table_ProductCategories();
		return $this->categories_model->getCategory($id);
	}

	public function getAllProducts()
	{
		$this->products_model = new Table_Products();
		return $this->products_model->getAllProducts();
	}

	public function getAllNewProducts()
	{
		$this->products_model = new Table_Products();
		return $this->products_model->getAllProducts(true);
	}

	public function getAllCategories($ids)
	{
		$this->categories_model = new Table_ProductCategories();
		return $this->categories_model->getAllCategories($ids);
	}

	public function getProducts($cat_id)
	{
		$this->products_model = new Table_Products();
		return $this->products_model->getProducts($cat_id);
	}

	public function getProductsNews($cat_id)
	{
		$this->products_model = new Table_Products();
		return $this->products_model->getProducts($cat_id, true);
	}

	public function getProduct($id)
	{
		$this->products_model = new Table_Products();
		return $this->products_model->getProduct($id);
	}
    public function getProductFaq($pid)
	{
		$this->productfaq_model = new Table_ProductFaq();
		return $this->productfaq_model->getProductFaq($pid);
	}
    public function getProductAdvice($pid)
	{
		$this->productadvice_model = new Table_ProductAdvice();
		return $this->productadvice_model->getProductAdvice($pid);
	}
    public function getApplicationProducts($aid)
	{
		$this->productadvice_model = new Table_ProductAdvice();
		return $this->productadvice_model->getApplicationProducts($aid);
	}
}
?>